public GameObject myObject; //make ref. in inspector window myObject.GetComponent<MyScript>().MyFunction();
void Start() { ClickToMove = FindObjectOfType<ClickToMoveScript>(); ClickToMove.PlayWoodCuttingAnim(); }